package testLambda;

import java.util.ArrayList;
import java.util.List;

public class LambdaBean {
	
	private int i;
	
	private String str;
	
	private long l;

	public int getI() {
		return i;
	}

	public String getStr() {
		return str;
	}

	public long getL() {
		return l;
	}

	public void setI(int i) {
		this.i = i;
	}

	public void setStr(String str) {
		this.str = str;
	}

	public void setL(long l) {
		this.l = l;
	}
	
	
	public static List<LambdaBean> create(int size)
	{
		List<LambdaBean> list = new ArrayList<>(size);
		for(int i =0;i<size;i++)
		{
			LambdaBean bean = new LambdaBean();
			bean.setI(i);
			bean.setL(i);
			bean.setStr("str"+i);
			list.add(bean);
		}
		return list;
	}
}
